package com.tuhao.www.common;

import org.apache.log4j.Logger;

import java.util.Date;

/**
 * 规范打印log
 */
public class LogUtils {
	
	/**
	 * 封装时间
	 */
	public static void infoLog(Logger LOGGER,String message){
		Date now = new Date();
		java.text.DateFormat formatDate = new java.text.SimpleDateFormat("dd/MM/yyyy:HH:mm:ss");
		String nowDate = formatDate.format(now);
		String messages = nowDate+" "+message;
		LOGGER.info(messages);
	}
}
